﻿
Partial Public Class DashboardView

    Private Sub DashboardView_Loaded(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs) Handles Me.Loaded
        Me.AddHandler(Controls.SelectionPanel.TeamSelectionEvent, New TeamRoutedEventHandler(AddressOf OnTeamSelectionEvent))
    End Sub

    Private Sub DashboardView_Unloaded(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs) Handles Me.Unloaded
        Me.RemoveHandler(Controls.SelectionPanel.TeamSelectionEvent, New TeamRoutedEventHandler(AddressOf OnTeamSelectionEvent))
    End Sub

    Private Sub OnTeamSelectionEvent(ByVal sender As Object, ByVal e As TeamRoutedEventArgs)
        'ux_ActionPanel.Refresh(e.Project, e.View)
        'ux_ProjectView.Refresh(e.Project, e.View)
    End Sub

    Private Sub ux_SelectionPanel_TeamSelectionChanged(ByVal sender As Object, ByVal e As TeamRoutedEventArgs) Handles ux_SelectionPanel.TeamSelectionChanged
        ux_ActionPanel.Refresh(e.Project, e.View)
        ux_ProjectView.Refresh(e.Project, e.View)
    End Sub
End Class
